import request from '@/utils/request'

// 查询列表
export function getList(query) {
  return request({
    url: '/centre/washDevice/list',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getDetail(id) {
  return request({
    url: '/centre/washDevice/' + id,
    method: 'get'
  })
}

// 新增
export function add(data) {
  return request({
    url: '/centre/washDevice/add',
    method: 'post',
    data: data
  })
}

// 修改
export function edit(data) {
  return request({
    url: '/centre/washDevice/edit',
    method: 'PUT',
    data: data
  })
}

// 删除
export function del(id) {
  return request({
    url: '/centre/washDevice/remove/' + id,
    method: 'delete'
  })
}

// 导出运营点
export function exportWashDevice(query) {
  return request({
    url: '/centre/washDevice/export',
    method: 'get',
    params: query
  })
}

